package com.ebraga.trackerclub.android.manager.service;

import com.ebraga.trackerclub.android.dao.api.ChronometerDao;
import com.ebraga.trackerclub.android.dao.service.ChronometerServiceDao;
import com.ebraga.trackerclub.android.manager.core.ChronometerManagerImpl;
import com.ebraga.trackerclub.android.util.api.AndroidContext;
import com.ebraga.trackerclub.android.util.core.DataAccessObjectImpl;

public class ChronometerServiceManager extends ChronometerManagerImpl {

	public ChronometerServiceManager(AndroidContext context) {
				
		String enviroment = System.getProperty("Enviroment");
		
		if ( enviroment == null || !enviroment.equals("UNIT_TEST") ) {
			
			super.setChronometerDao(new ChronometerServiceDao  (new DataAccessObjectImpl(context)));			
		}
	}
	
	public void setChronometerDao (ChronometerDao chronometerDao){
		super.setChronometerDao (chronometerDao);
	}		
}
